<%@page import="CustomClassFile.yueli.KaoqinDk"%>
<%@page import="com.alibaba.fastjson.JSON"%>
<%@page import="java.util.Map"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	response.setHeader("Content-Type", "application/json;charset=UTF-8");//注意加上这一句
String type=request.getParameter("type");

String curruserid=request.getParameter("curruserid");
String kqrq=request.getParameter("kqrq");
String kqsj=request.getParameter("kqsj");
String kqdd=request.getParameter("kqdd");
String kqdjwd=request.getParameter("kqdjwd");
String kqdkjd=request.getParameter("kqdkjd");
String kqdkwd=request.getParameter("kqdkwd");
String curraddress=request.getParameter("curraddress");
String formmodeid=request.getParameter("formmodeid");
String modedatacreater=request.getParameter("modedatacreater");
String modedatacreatertype=request.getParameter("modedatacreatertype");
String modedatacreatedate=request.getParameter("modedatacreatedate");
String modedatacreatetime=request.getParameter("modedatacreatetime");
String kqlx=request.getParameter("kqlx");
String pbsj=request.getParameter("pbsj");
String sbxb=request.getParameter("sbxb");
String kqdbh=request.getParameter("kqdbh");
String bcbh=request.getParameter("bcbh");
String isflow=request.getParameter("isflow");
String dkcard=request.getParameter("dkcard");
String dkcardstatus=request.getParameter("dkcardstatus");
String flowdataid=request.getParameter("flowdataid");
String remarks=request.getParameter("remarks");

Map<String,String[]> map=request.getParameterMap();
KaoqinDk.logger.info("kaoqinDaKa.jsp接收参数："+JSON.toJSONString(map));
if("1".equals(type)){
	boolean flag=KaoqinDk.insertDaKa(curruserid, kqrq, kqsj, kqdd, kqdjwd, kqdkjd, kqdkwd, curraddress, formmodeid, modedatacreater, modedatacreatertype, modedatacreatedate, modedatacreatetime, kqlx, pbsj, sbxb, kqdbh, bcbh, isflow, dkcard, dkcardstatus, flowdataid);
	out.print("{\"status\":"+flag+"}");
}
if("2".equals(type)){
	Map<String ,Object> map1=KaoqinDk.getDayPb(curruserid, kqrq);
	out.print(JSON.toJSONString(map1));
}
%>
